package flow;

import java.util.Scanner;

public class SearchString {
    public static void main(String[] args) {
        Scanner stdIN=new Scanner(System.in);
        System.out.print("字符串s1： ");String s1=stdIN.next();
        System.out.print("字符串s2: ");String s2=stdIN.next();
        int abc=s1.indexOf(s2);
        if (abc==-1)
            System.out.println("s1不包含s2");
        else
            System.out.println(abc);

    }
}
